<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>

<%
	if len(session("Login"))=0 then
		response.Redirect("Login.asp")
	end if
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Leave a Message</title>

<style type="text/css">
<!--
#Msg{
	font-size:18px;
	font-family:微软雅黑;
	border-width:0px;
	width:100%;
	height:90%;
}

.button{
	width:100px;
	height:32px;
	font-family:'Courier New', Courier, monospace;
	font-size:16px;
	text-align:center;
}
-->
</style>
<script type="text/javascript" src="./js/Common.js"></script>
<script type="text/javascript" language="javascript">
// <![CDATA[
function Window_Load(){
	window.parent.fadeIn();
	fixPng(H$("bg"));
	Opacity(H$("Msg"),80);
	Opacity(H$("Commands"),80);
}

function CancelMsg(){
	window.parent.fadeOut();
}

function AddMusic(){
	H$("Msg").value+="[MP3]Name_Displayed URL[.MP3]";
}
function AddPicture(){
	H$("Msg").value+="[IMG]Name_Displayed URL[.IMG]";
}
function AddFLV(){
	H$("Msg").value+="[FLV]Name_Displayed URL[.FLV]";
}
function AddSWF(){
	H$("Msg").value+="[SWF]Name_Displayed URL[.SWF]";
}

// ]]>
</script>
</head>

<body bgcolor="transparent" style="background:none;" onload="Window_Load();">
  <form action="Post.asp" method="post" name="PostMessage" target="_self" id="PostMessage">
    <div align="left" style="padding-top:3%; position:relative;">
		<img id="bg" src="<%=Application(Session("Server") & "MessageBg-trans.png")%>" style="position:absolute; bottom:10%; right:0%; z-index:-1;" />
		<textarea name="Msg" id="Msg" cols="60" rows="10" ></textarea>
    </div>
    <div align="right" style="padding-top:5px; position:relative; height:48px;">
    	<a href="#" style=" text-decoration:none;">
    	<img alt="Add Music Link to Message" src="<%=Application(Session("Server") & "Music-48x48-trans.png")%>" style="position:relative;" onclick="AddMusic();" />
        <img alt="Add Picture to Message" src="<%=Application(Session("Server") & "Picture-48x48-trans.png")%>" style="position:relative;" onclick="AddPicture();" />
        <img alt="Add FLV Media File to Message" src="<%=Application(Session("Server") & "FLV-48x48-trans.png")%>" style="position:relative;" onclick="AddFLV();" />
        <img alt="Add SWF File(Youtube) to Message" src="<%=Application(Session("Server") & "SWF-48x48-trans.png")%>" style="position:relative;" onclick="AddSWF();" />
        </a>
    </div>
    <div id="Commands"  align="right" style="padding-top:5px;">
		<input type="submit" name="Submit" id="Submit" value="Submit" align="right"class="button"/>
		<input type="button" name="Cancel" id="Cancel" value="Cancel" align="right" onclick="CancelMsg();" class="button"/>
    </div>
  </form>
</body>
</html>
